<?php
header("Content-type:text/html;charset=utf-8");
class Mm{
public function curl_post($url,$array){  
        
        $curl = curl_init();   
        //设置提交的url  
        curl_setopt($curl, CURLOPT_URL, $url);
        //设置头文件的信息作为数据流输出  
        curl_setopt($curl, CURLOPT_HEADER, 0);  
        //设置获取的信息以文件流的形式返回，而不是直接输出。  
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);  
        //设置post方式提交  
        curl_setopt($curl, CURLOPT_POST, 1);  
        //设置post数据  
        $post_data = $array;  
        curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);  
        //执行命令  
        $data = curl_exec($curl);  
        //关闭URL请求  
        curl_close($curl);  
      //获得数据并返回  
        return $data; 
        
    }
}
$result = new Mm();
if(isset($_POST['PAGETYPE']) && isset($_POST['funcName'])){
     $array = array("PAGETYPE"=>$_POST['PAGETYPE'],"funcName"=>$_POST['funcName']);
}
if(isset($_POST['Page'])){
     $array = array("PAGETYPE"=>$_POST['PAGETYPE'],"funcName"=>$_POST['funcName'],"Page"=>$_POST['Page']);
}
if(isset($_POST['colid'])){
     $array = array("PAGETYPE"=>$_POST['PAGETYPE'],"funcName"=>$_POST['funcName'],"colid"=>$_POST['colid']);
}
if(isset($_POST['id'])){
     $array = array("PAGETYPE"=>$_POST['PAGETYPE'],"funcName"=>$_POST['funcName'],"id"=>$_POST['id']);
}
if(isset($_POST['colid']) && isset($_POST['Page'])){
     $array = array("PAGETYPE"=>$_POST['PAGETYPE'],"funcName"=>$_POST['funcName'],"colid"=>$_POST['colid'],"Page"=>$_POST['Page']);
}
if(isset($_POST['artid'])){
     $array = array("PAGETYPE"=>$_POST['PAGETYPE'],"funcName"=>$_POST['funcName'],"artid"=>$_POST['artid']);
}
if(isset($_POST['recid'])){
     $array = array("PAGETYPE"=>$_POST['PAGETYPE'],"funcName"=>$_POST['funcName'],"recid"=>$_POST['recid']);
}
if(isset($_POST['userid'])){
     $array = array("PAGETYPE"=>$_POST['PAGETYPE'],"funcName"=>$_POST['funcName'],"userid"=>$_POST['userid']);
}
if(isset($_POST['userid']) && isset($_POST['Page'])){
     $array = array("PAGETYPE"=>$_POST['PAGETYPE'],"funcName"=>$_POST['funcName'],"userid"=>$_POST['userid'],"Page"=>$_POST['Page']);
}
if(isset($_POST['keyword'])){
     $array = array("PAGETYPE"=>$_POST['PAGETYPE'],"funcName"=>$_POST['funcName'],"keyword"=>$_POST['keyword']);
}
if(isset($_POST['Page']) && isset($_POST['keyword'])){
     $array = array("PAGETYPE"=>$_POST['PAGETYPE'],"funcName"=>$_POST['funcName'],"keyword"=>$_POST['keyword'],"Page"=>$_POST['Page']);
}
// if(isset($_POST['PAGETYPE']) && isset($_POST['funcName']) && isset($_POST['keyword']) && isset($_POST['Page'])){
//       $array = array("PAGETYPE"=>$_POST['PAGETYPE'],"funcName"=>$_POST['funcName'],"keyword"=>$_POST['keyword'],"Page"=>$_POST['Page']);
// }
// var_dump($_POST);
//$array=array("PAGETYPE"=>200,"funcName"=>'GetListData');
$url = "http://www.618cd.com:19060/AppInterface.asmx/AppCallBack";
$data = $result->curl_post($url,$array);
echo $data;


?>